from week3lianxi.Page import Page
from week3lianxi.Page2 import Page2
from selenium import webdriver
from selenium.webdriver.support.ui import WebDriverWait
import time,unittest
from week3lianxi.Tools import Tools

class TaseCase(unittest.TestCase):
    def setUp(self)->None:
        self.driver=webdriver.Edge()
        self.driver.maximize_window()
        Tools().Log()
        time.sleep(2)
        self.driver.implicitly_wait(10)

    def tearDown(self)->None:
        time.sleep(2)
        self.driver.quit()

    # def test_163(self):
    #     po=Page(self.driver)
    #     po.login_163_luoji()

    def test_163_02(self):
        po=Page2(self.driver)
        po.luoji_163_xiexin()

if __name__ == '__main__':
    unittest.main()
